package com.mayikt.service;

import com.mayikt.service.classloader.MeiteClassloader;

/**
 * @ClassName Test004
 * @Author 蚂蚁课堂余胜军 QQ644064779 www.mayikt.com
 * @Version V1.0
 **/
public class Test004 {
    public static void main(String[] args) throws ClassNotFoundException {
        MeiteClassloader meiteClassloader = new MeiteClassloader("E:\\code\\OrderServiceImpl.class");

        Class<?> aClass =
                meiteClassloader.loadClass("com.mayikt.service.impl.OrderServiceImpl");
        System.out.println(aClass.getClassLoader());
//        Class<?> aClass = ClassLoader.getSystemClassLoader()
//                .loadClass("com.mayikt.service.impl.OrderServiceImpl");
//        System.out.println(aClass.getClassLoader());

    }
}
